import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:文件重命名和移动
 * Author: WJW
 * Date: 2024-08-20
 * Time: 15:37
 */
public class IODemo6 {
    public static void main(String[] args) {
        File src = new File("./test.txt");
       // File dest = new File("./test2.txt");//重命名
        File dest = new File("./aaa/bbb/ccc/test.txt");//文件的移动
        src.renameTo(dest);
    }
}
